package com.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 路亚
 * @version 0.1
 * @className CodeAndMsg
 * @description
 * @date 2024/12/11 14:48
 * @since jdk11
 */
@NoArgsConstructor
@Getter
@AllArgsConstructor
public enum CodeAndMsg {

    TOKEN_NOT_FOUND(1001, "用户未登录"),
    TOKEN_ERROR(1002, "token错误"),
    REQUEST_METHOD_ERROR(1003, "请求方式错误"),
    REQUEST_PARAM_FORMAT_ERROR(1004, "请求参数格式不正确"),
    USER_NOT_EXIST(1005, "用户不存在"),
    PASSWORD_ERROR(1006, "密码错误"),
    VIDEO_NAME_REPEAT(1007, "短剧名称重复"),
    VIDEO_NOT_UPLOAD(1008, "视频没有上传"),
    VIDEO_STATUS_ERROR(1009, "上架中的短剧无法删除"),
    COUPON_NOT_EXIST(1010, "优惠卷不存在!"),
    COUPON_STATUS_ERROR(1011, "优惠卷状态错误!"),
    COUPON_NOT_ISSUE(1012, "优惠卷发放期结束!"),
    COUPON_LIMIT(1013, "用户领取的优惠卷已达到上限"),
    COUPON_NOT_ENOUGH(1014, "优惠卷库存不足"),
    COUPON_ERROR(1015, "优惠卷错误"),
    MQ_SEND_ERROR(1016, "消息发送失败"),
    PARAM_ERROR(1017, "参数异常"),
    SIGN_IN_ERROR(1018, "今天已经签到过了"),
    VIEWING_IS_DONE(1019, "今日观看任务已经完成"),
    TABLE_NOT_EXIST(1020, "表不存在"),
    VIDEO_ALREADY_EXIST(1021, "短剧id已经存在"),
    LIKED_IS_LIKED(1022, "您已经点过赞了"),
    MQ_MESSAGE_ERROR(1023, "消息封装失败"),
    MQ_CONSUMER_ERROR(1024, "消息消费失败"),
    VIDEO_ITEM_NOT_EXIST(1025, "该短剧行数据不存在"),
    SERVICE_BUSY(1026, "服务器繁忙，请稍后再试！"),
    PLUGIN_ERROR(1027, "供应商解析插件远程调用jar包的方法失败");
    private Integer code;
    private String msg;

}
